package com.lgx.mall.business.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


/**
 * 退货申请
 * 
 * @author qujiangbo
 *
 */
@Entity
@Table(name = "TM_RETURNREQUEST")
public class ReturnRequest implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5936443774814451457L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private long id;
	
	/**
	 * 所属订单
	 */
	@ManyToOne
	@JoinColumn(name="order_id")
	private Order order;
	
	/**
	 * 原因
	 * */
	private String reason;
	
	/**
	 * 说明
	 * */
	private String descripion;
	
	/**
	 * 凭证1(图片)
	 * */
	private String proof1;
	
	/**
	 * 凭证2(图片)
	 * */
	private String proof2;
	
	/**
	 * 凭证3(图片)
	 * */
	private String proof3;
	
	/**相关联单号ID*/
	@Column(name="related_order_id")
	private long relatedOrderId;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public Order getOrder() {
		return order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getDescripion() {
		return descripion;
	}

	public void setDescripion(String descripion) {
		this.descripion = descripion;
	}

	public String getProof1() {
		return proof1;
	}

	public void setProof1(String proof1) {
		this.proof1 = proof1;
	}

	public String getProof2() {
		return proof2;
	}

	public void setProof2(String proof2) {
		this.proof2 = proof2;
	}

	public String getProof3() {
		return proof3;
	}

	public void setProof3(String proof3) {
		this.proof3 = proof3;
	}

	public long getRelatedOrderId() {
		return relatedOrderId;
	}

	public void setRelatedOrderId(long relatedOrderId) {
		this.relatedOrderId = relatedOrderId;
	}
}
